.class Lcom/estrongs/android/pop/app/compress/i$c;
.super Ljava/lang/Thread;
.source "OpenZipEntryProgressDialog.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/pop/app/compress/i;->onStart()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/pop/app/compress/i;


# direct methods
.method constructor <init>(Lcom/estrongs/android/pop/app/compress/i;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/app/compress/i$c;->a:Lcom/estrongs/android/pop/app/compress/i;

    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 6

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/compress/i$c;->a:Lcom/estrongs/android/pop/app/compress/i;

    const/4 v1, 0x0

    iput-boolean v1, v0, Lcom/estrongs/android/pop/app/compress/i;->a:Z

    const/4 v2, 0x1

    .line 2
    :try_start_0
    invoke-static {v0}, Lcom/estrongs/android/pop/app/compress/i;->a(Lcom/estrongs/android/pop/app/compress/i;)Les/e80;

    move-result-object v0

    iget-object v3, p0, Lcom/estrongs/android/pop/app/compress/i$c;->a:Lcom/estrongs/android/pop/app/compress/i;

    invoke-static {v3}, Lcom/estrongs/android/pop/app/compress/i;->b(Lcom/estrongs/android/pop/app/compress/i;)Lcom/estrongs/io/model/ArchiveEntryFile;

    move-result-object v3

    new-instance v4, Lcom/estrongs/android/pop/app/compress/i$c$a;

    invoke-direct {v4, p0}, Lcom/estrongs/android/pop/app/compress/i$c$a;-><init>(Lcom/estrongs/android/pop/app/compress/i$c;)V

    invoke-virtual {v0, v3, v4}, Les/e80;->c(Lcom/estrongs/io/model/ArchiveEntryFile;Les/k80;)Ljava/io/File;

    move-result-object v0

    .line 3
    iget-object v3, p0, Lcom/estrongs/android/pop/app/compress/i$c;->a:Lcom/estrongs/android/pop/app/compress/i;

    iget-boolean v3, v3, Lcom/estrongs/android/pop/app/compress/i;->a:Z

    if-eqz v3, :cond_0

    if-eqz v0, :cond_1

    .line 4
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v3

    if-eqz v3, :cond_1

    .line 5
    invoke-virtual {v0}, Ljava/io/File;->delete()Z

    goto :goto_0

    :cond_0
    if-eqz v0, :cond_2

    .line 6
    iget-object v3, p0, Lcom/estrongs/android/pop/app/compress/i$c;->a:Lcom/estrongs/android/pop/app/compress/i;

    invoke-static {v3}, Lcom/estrongs/android/pop/app/compress/i;->d(Lcom/estrongs/android/pop/app/compress/i;)Landroid/os/Handler;

    move-result-object v3

    iget-object v4, p0, Lcom/estrongs/android/pop/app/compress/i$c;->a:Lcom/estrongs/android/pop/app/compress/i;

    invoke-static {v4}, Lcom/estrongs/android/pop/app/compress/i;->d(Lcom/estrongs/android/pop/app/compress/i;)Landroid/os/Handler;

    move-result-object v4

    invoke-virtual {v0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v4, v2, v0}, Landroid/os/Handler;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;

    move-result-object v0

    invoke-virtual {v3, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 7
    :cond_1
    :goto_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/compress/i$c;->a:Lcom/estrongs/android/pop/app/compress/i;

    invoke-static {v0, v1}, Lcom/estrongs/android/pop/app/compress/i;->a(Lcom/estrongs/android/pop/app/compress/i;Z)Z

    goto/16 :goto_3

    .line 8
    :cond_2
    new-instance v0, Ljava/lang/Exception;

    const-string v3, ""

    invoke-direct {v0, v3}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V

    throw v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :catchall_0
    move-exception v0

    goto/16 :goto_4

    :catch_0
    move-exception v0

    .line 9
    :try_start_1
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    .line 10
    iget-object v3, p0, Lcom/estrongs/android/pop/app/compress/i$c;->a:Lcom/estrongs/android/pop/app/compress/i;

    iget-boolean v3, v3, Lcom/estrongs/android/pop/app/compress/i;->a:Z

    if-nez v3, :cond_6

    .line 11
    invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v3

    .line 12
    invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v4

    if-eqz v4, :cond_3

    invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v4

    const-string v5, "WRONG PASSWORD"

    invoke-virtual {v4, v5}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v4

    if-eqz v4, :cond_3

    .line 13
    iget-object v1, p0, Lcom/estrongs/android/pop/app/compress/i$c;->a:Lcom/estrongs/android/pop/app/compress/i;

    invoke-static {v1, v2}, Lcom/estrongs/android/pop/app/compress/i;->a(Lcom/estrongs/android/pop/app/compress/i;Z)Z

    goto :goto_2

    :cond_3
    if-eqz v3, :cond_5

    const-string v4, "rarEncryptedException"

    .line 14
    invoke-virtual {v3, v4}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_5

    new-array v0, v2, [Z

    aput-boolean v1, v0, v1

    const/4 v2, 0x0

    .line 15
    sget-object v3, Lcom/estrongs/io/archive/sevenzip/b;->b:Ljava/lang/String;

    invoke-static {v2, v3, v0}, Lcom/estrongs/io/archive/sevenzip/b;->a(Ljava/lang/Runnable;Ljava/lang/String;[Z)Z

    move-result v2

    if-eqz v2, :cond_4

    aget-boolean v0, v0, v1

    if-nez v0, :cond_4

    .line 16
    iget-object v0, p0, Lcom/estrongs/android/pop/app/compress/i$c;->a:Lcom/estrongs/android/pop/app/compress/i;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/compress/i;->d(Lcom/estrongs/android/pop/app/compress/i;)Landroid/os/Handler;

    move-result-object v0

    new-instance v1, Lcom/estrongs/android/pop/app/compress/i$c$b;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/compress/i$c$b;-><init>(Lcom/estrongs/android/pop/app/compress/i$c;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    goto :goto_1

    .line 17
    :cond_4
    iget-object v0, p0, Lcom/estrongs/android/pop/app/compress/i$c;->a:Lcom/estrongs/android/pop/app/compress/i;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/compress/i;->d(Lcom/estrongs/android/pop/app/compress/i;)Landroid/os/Handler;

    move-result-object v0

    new-instance v1, Lcom/estrongs/android/pop/app/compress/i$c$c;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/compress/i$c$c;-><init>(Lcom/estrongs/android/pop/app/compress/i$c;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 18
    :goto_1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/compress/i$c;->a:Lcom/estrongs/android/pop/app/compress/i;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->dismiss()V

    return-void

    .line 19
    :cond_5
    :goto_2
    :try_start_2
    iget-object v1, p0, Lcom/estrongs/android/pop/app/compress/i$c;->a:Lcom/estrongs/android/pop/app/compress/i;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/compress/i;->d(Lcom/estrongs/android/pop/app/compress/i;)Landroid/os/Handler;

    move-result-object v1

    new-instance v2, Lcom/estrongs/android/pop/app/compress/i$c$d;

    invoke-direct {v2, p0, v0}, Lcom/estrongs/android/pop/app/compress/i$c$d;-><init>(Lcom/estrongs/android/pop/app/compress/i$c;Ljava/lang/Exception;)V

    invoke-virtual {v1, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    .line 20
    :cond_6
    :goto_3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/compress/i$c;->a:Lcom/estrongs/android/pop/app/compress/i;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->dismiss()V

    return-void

    :goto_4
    iget-object v1, p0, Lcom/estrongs/android/pop/app/compress/i$c;->a:Lcom/estrongs/android/pop/app/compress/i;

    invoke-virtual {v1}, Landroid/app/ProgressDialog;->dismiss()V

    .line 21
    throw v0
.end method
